package com.zerox.mapper;

import com.zerox.entity.Supplier;
import com.zerox.entity.SysUser;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SysUserMapper {
    SysUser login(@Param("account") String account,@Param("password")String password);

    List<SysUser> list(@Param("startIndex") Integer startIndex, @Param("pageSize") Integer pageSize, @Param("realName") String realName, @Param("roleId") Integer roleId);

    SysUser selectUser(Integer id);

    int add(SysUser sysUser);

    int delete(Integer id);

    int count(@Param("realName")String realName,@Param("roleId")Integer roleId);

    int update(SysUser sysUser);

    int userByAccount(String account);



    List<Supplier> listSuppliers(@Param("startIndex") Integer stInteger, @Param("pageSize") Integer pageSize,@Param("supName") String supName);

    int count2(@Param("supName") String supName);

    Supplier SupplierselectById(Integer id);

    int supplierAdd(Supplier supplier);

    int supplierDelete(Integer id);

    int supplierUpdate(Supplier supplier);

    Supplier supplierBySupCode(String supName);





}
